package com.example.learnspring.service;

import com.example.learnspring.entity.User;
import com.example.learnspring.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.util.CollectionUtils;

import java.util.Collection;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(User user) {
        User dbUser = userMapper.selectUser(user);
//        users.
        return dbUser;
    }
}
